﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJP.Domain
{
    /// <summary>
    /// 属性对象接口
    /// </summary>
    /// <typeparam name="TPropertyType">属性类型</typeparam>
    public interface IPropertyObject<TPropertyType>
    {
        /// <summary>
        /// 获取属性值
        /// </summary>
        /// <param name="property"></param>
        /// <returns></returns>
        TPropertyType GetProperty(string property);

        /// <summary>
        /// 设置属性值
        /// </summary>
        /// <param name="value"></param>
        /// <param name="property"></param>
        void SetProperty(TPropertyType value, string property);
    }

    /// <summary>
    /// 实现 <see cref="IPropertyObject{TPropertyType}"/> 为 <see cref="object"/>类型的简写方式
    /// </summary>
    public interface IPropertyObject : IPropertyObject<object>
    {

    }
}
